#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int main()
{
	int len=strlen("790");
	int len1 = strlen("7900");
	printf("%d", len-len1);
	return 0;
}